package com.innovation.sys.pojo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
import javax.persistence.*;

@Table(name = "`s_sys_account`")
public class SSysAccount implements Serializable {
	private static final long serialVersionUID = 1L;

	private Integer accountId;

	private String userName;

	private String nickName;

	private String password;

	private String picture;

	private String tel;

	private String email;

	private Integer status;

	private Date createTime;

	private Date updateTime;

	private Integer delFlag;

	@Transient
	private String code;

	private String[] permission;

	public String[] getPermission() {
		return permission;
	}

	public void setPermission(String[] permission) {
		this.permission = permission;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return "{\"accountId\":\"" + accountId + "\",\"userName\":\"" + userName + "\",\"nickName\":\"" + nickName
				+ "\",\"password\":\"" + password + "\",\"picture\":\"" + picture + "\",\"tel\":\"" + tel
				+ "\",\"email\":\"" + email + "\",\"status\":\"" + status + "\",\"createTime\":\"" + createTime
				+ "\",\"updateTime\":\"" + updateTime + "\",\"delFlag\":\"" + delFlag + "\",\"code\":\"" + code
				+ "\",\"permission\":\"" + Arrays.toString(permission) + "\"}";
	}
	
}